<script src="/vue.js"></script>

<div id="app">
    <p>{{msg}}</p>
    <button v-on:click="showMsg">点击</button>
</div>

<script>
    var vm = new Vue({
        el: "#app",
        data: {
            msg: "内容"
        },
        methods: {
            showMsg() {
                this.msg = "v-on 监听事件"
            }
        }
    })
</script>

<style>

</style>